/**     
 * @{#} ClientException.java Create on 2011-7-22 上午09:22:42     
 *     
 * Copyright (c) 2011 by xiaofeng.zhouxf     
 */
package com.sefer.memcached.exception;

import com.sefer.memcached.constants.ErrorCode;

/**
 * Common exception class for all the exception . ErrorCode show the exact
 * error.
 * 
 * @author <a href="mailto:xiaofeng.zhouxf83@gmail.com">xiaofeng.zhouxf</a>
 * @version 1.0
 */
public class ClientException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	@SuppressWarnings("unused")
	private ErrorCode code = null;

	public ClientException() {
		super();
	}

	public ClientException(String message, Throwable cause) {
		super(message, cause);
	}

	public ClientException(String message) {
		super(message);
	}

	public ClientException(Throwable cause) {
		super(cause);
	}

	@SuppressWarnings("unused")
	public ClientException(ErrorCode code, Throwable cause, String message) {
		super(message, cause);
		this.code = code;
	}

	@SuppressWarnings("unused")
	public ClientException(ErrorCode code, String message) {
		super(message);
		this.code = code;
	}
}
